Hey all. I have been researching and experimenting with this and have
not yet found a way to do it with either mod_rewrite or mod_proxy.
I have about 25 virtual hosts all with their own ssl keys. I want to
proxy them all through apache to JBoss and then have JBoss proxy content
from Zope.
The problem I am having is that I have a portlet-streamer tool which I
wrote and open-sourced which will rewrite the content links from zope
according to a configuration file which works very similar to
mod_rewrite (which I used as a guide). I have no problems except when I
try to determine what the original protocol was.
When using mod_proxy, I can use apache 2.0 and use the ProxyPreserveHost
directive to get the host from the request, or I can simply pull it from
the x-forward-host header property using my rewrite tool. Unfortunately
nothing in the request or the header tells me if the request was via
http or via https.
Is there any way to tell the target host the original protocol via a
header variable or a directive?
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>H
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial'>ey all.
style=3D'mso-spacerun:yes'> I have been researching and
experimenting with this and have not yet found a way to do it with =
either
mod_rewrite or mod_proxy.
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>I have about 25 virtual hosts all with their own ssl
keys.I want to proxy them =
all
through apache to JBoss and then have JBoss proxy content from =
Zope.
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>The problem I am having is that I have a =
portlet-streamer
tool which I wrote and open-sourced which will rewrite the content links =
from
zope according to a configuration file which works very similar to =
mod_rewrite
(which I used as a guide). = I have
no problems except when I try to determine what the original protocol =
was.
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>When using mod_proxy, I can use apache 2.0 and use =
the
ProxyPreserveHost directive to get the host from the request, or I can =
simply
pull it from the x-forward-host header property using my rewrite =
tool.
style=3D'mso-spacerun:yes'> Unfortunately nothing in the =
request or
the header tells me if the request was via http or via =
https.
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>Is there any way to tell the target host the original
protocol via a header variable or a =
directive?
------=_NextPart_000_0050_01C31628.986F26B0--
Re: Proxying the protocol...
am 11.05.2003 12:35:26 von Daniel Lopez
> When using mod_proxy, I can use apache 2.0 and use the ProxyPreserveHost
> directive to get the host from the request, or I can simply pull it from
> the x-forward-host header property using my rewrite tool. Unfortunately
> nothing in the request or the header tells me if the request was via
> http or via https.
>
> Is there any way to tell the target host the original protocol via a
> header variable or a directive?
In Apache 2, you can set a header in the request with any environment
variable (see RequestHeader directive). Enable SSL environment variables,
then add a header with the HTTPS variable, which will tell you if the
request is secure or not. other variables you may be interested on:
Why don't you add your own custom header to the request?
-----Original Message-----
From: Matt Gregory [mailto:matt.gregory@skyleach.com]
Sent: Friday, May 09, 2003 12:44 PM
To: modproxy-dev@apache.org
Subject: Proxying the protocol...
Hey all. I have been researching and experimenting with this and have not
yet found a way to do it with either mod_rewrite or mod_proxy.
I have about 25 virtual hosts all with their own ssl keys. I want to proxy
them all through apache to JBoss and then have JBoss proxy content from
Zope.
The problem I am having is that I have a portlet-streamer tool which I wrote
and open-sourced which will rewrite the content links from zope according to
a configuration file which works very similar to mod_rewrite (which I used
as a guide). I have no problems except when I try to determine what the
original protocol was.
When using mod_proxy, I can use apache 2.0 and use the ProxyPreserveHost
directive to get the host from the request, or I can simply pull it from the
x-forward-host header property using my rewrite tool. Unfortunately nothing
in the request or the header tells me if the request was via http or via
https.
Is there any way to tell the target host the original protocol via a header
variable or a directive?
From: Matt Gregory
[mailto:matt.gregory@skyleach.com]
Sent: Friday, May 09, =
2003 12:44
PM
To: =
modproxy-dev@apache.org
Subject: Proxying the =
protocol...
face=3D"Times New Roman">
style=3D'font-size:12.0pt'>
color=3Dnavy face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>H<=
font
size=3D2 face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial'>ey all.
style=3D'mso-spacerun:yes'> I have been researching and =
experimenting
with this and have not yet found a way to do it with either mod_rewrite =
or
mod_proxy.
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial'>I have about 25 virtual =
hosts all
with their own ssl keys. = I want to proxy
them all through apache to JBoss and then have JBoss proxy content from =
Zope.
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial'>The problem I am having is =
that I
have a portlet-streamer tool which I wrote and open-sourced which will =
rewrite
the content links from zope according to a configuration file which =
works very
similar to mod_rewrite (which I used as a guide).
style=3D'mso-spacerun:yes'> I have no problems except when =
I try to
determine what the original protocol was.
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial'>When using mod_proxy, I =
can use
apache 2.0 and use the ProxyPreserveHost directive to get the host from =
the
request, or I can simply pull it from the x-forward-host header =
property using
my rewrite tool. = Unfortunately nothing
in the request or the header tells me if the request was via http or =
via https.
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial'>Is there any way to tell =
the target
host the original protocol via a header variable or a =
directive?
Because I don't know how. I haven't found a way to add custom header
variables via mod_rewrite or mod_proxy. Is there another apache module
that will do this?
-----Original Message-----
From: Juan Rivera [mailto:Juan.Rivera@citrix.com]
Sent: Monday, May 12, 2003 9:56 AM
To: 'modproxy-dev@apache.org'
Subject: RE: Proxying the protocol...
Why don't you add your own custom header to the request?
-----Original Message-----
From: Matt Gregory [mailto:matt.gregory@skyleach.com]
Sent: Friday, May 09, 2003 12:44 PM
To: modproxy-dev@apache.org
Subject: Proxying the protocol...
Hey all. I have been researching and experimenting with this and have
not yet found a way to do it with either mod_rewrite or mod_proxy.
I have about 25 virtual hosts all with their own ssl keys. I want to
proxy them all through apache to JBoss and then have JBoss proxy content
from Zope.
The problem I am having is that I have a portlet-streamer tool which I
wrote and open-sourced which will rewrite the content links from zope
according to a configuration file which works very similar to
mod_rewrite (which I used as a guide). I have no problems except when I
try to determine what the original protocol was.
When using mod_proxy, I can use apache 2.0 and use the ProxyPreserveHost
directive to get the host from the request, or I can simply pull it from
the x-forward-host header property using my rewrite tool. Unfortunately
nothing in the request or the header tells me if the request was via
http or via https.
Is there any way to tell the target host the original protocol via a
header variable or a directive?
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>Beca use I =
don’t
know how.
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>
style=3D'mso-spacerun:yes'> I haven’t found a way to =
add custom
header variables via mod_rewrite or
class=3DSpellE>mod_proxy. = Is there
another apache module that will do this?
From: Matt Gregory
[mailto:matt.gregory@skyleach.com]
Sent: Friday, May 09, =
2003 12:44
PM
To: =
modproxy-dev@apache.org
Subject: Proxying the =
protocol...
face=3D"Times New Roman">
style=3D'font-size:12.0pt'>
color=3Dnavy
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>H
ont
size=3D2 face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial'>ey all.
style=3D'mso-spacerun:yes'> I have been researching and =
experimenting
with this and have not yet found a way to do it with either mod_rewrite =
or
mod_proxy.
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial'>I have about 25 virtual =
hosts all
with their own ssl keys.I =
want to proxy
them all through apache to JBoss and then have JBoss proxy content from =
Zope.
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial'>The problem I am having is =
that I
have a portlet-streamer tool which I wrote and open-sourced which will =
rewrite
the content links from zope according to a configuration file which =
works very
similar to mod_rewrite (which I used as a guide).
style=3D'mso-spacerun:yes'> I have no problems except when =
I try to
determine what the original protocol was.
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial'>When using mod_proxy, I can =
use
apache 2.0 and use the ProxyPreserveHost directive to get the host from =
the
request, or I can simply pull it from the x-forward-host header property =
using
my rewrite tool. = Unfortunately nothing
in the request or the header tells me if the request was via http or via =
https.
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial'>Is there any way to tell =
the target
host the original protocol via a header variable or a =
directive?
Also: I have not validated Apache 2.0 for work yet. We are still using
apache 1.3.27
-----Original Message-----
From: Juan Rivera [mailto:Juan.Rivera@citrix.com]
Sent: Monday, May 12, 2003 9:56 AM
To: 'modproxy-dev@apache.org'
Subject: RE: Proxying the protocol...
Why don't you add your own custom header to the request?
-----Original Message-----
From: Matt Gregory [mailto:matt.gregory@skyleach.com]
Sent: Friday, May 09, 2003 12:44 PM
To: modproxy-dev@apache.org
Subject: Proxying the protocol...
Hey all. I have been researching and experimenting with this and have
not yet found a way to do it with either mod_rewrite or mod_proxy.
I have about 25 virtual hosts all with their own ssl keys. I want to
proxy them all through apache to JBoss and then have JBoss proxy content
from Zope.
The problem I am having is that I have a portlet-streamer tool which I
wrote and open-sourced which will rewrite the content links from zope
according to a configuration file which works very similar to
mod_rewrite (which I used as a guide). I have no problems except when I
try to determine what the original protocol was.
When using mod_proxy, I can use apache 2.0 and use the ProxyPreserveHost
directive to get the host from the request, or I can simply pull it from
the x-forward-host header property using my rewrite tool. Unfortunately
nothing in the request or the header tells me if the request was via
http or via https.
Is there any way to tell the target host the original protocol via a
header variable or a directive?
From: Matt Gregory
[mailto:matt.gregory@skyleach.com]
Sent: Friday, May 09, =
2003 12:44
PM
To: =
modproxy-dev@apache.org
Subject: Proxying the =
protocol...
face=3D"Times New Roman">
style=3D'font-size:12.0pt'>
color=3Dnavy
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>H
ont
size=3D2 face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial'>ey all.
style=3D'mso-spacerun:yes'> I have been researching and
experimenting with this and have not yet found a way to do it with =
either
mod_rewrite or mod_proxy.
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial'>I have about 25 virtual =
hosts all
with their own ssl keys.I =
want to
proxy them all through apache to JBoss and then have JBoss proxy content =
from
Zope.
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial'>The problem I am having is =
that I
have a portlet-streamer tool which I wrote and open-sourced which will =
rewrite
the content links from zope according to a configuration file which =
works very
similar to mod_rewrite (which I used as a guide).
style=3D'mso-spacerun:yes'> I have no problems except when =
I try to
determine what the original protocol was.
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial'>When using mod_proxy, I can =
use
apache 2.0 and use the ProxyPreserveHost directive to get the host from =
the
request, or I can simply pull it from the x-forward-host header property =
using
my rewrite tool. = Unfortunately
nothing in the request or the header tells me if the request was via =
http or
via https.
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial'>Is there any way to tell =
the target
host the original protocol via a header variable or a =
directive?
------=_NextPart_000_013E_01C3189E.98D57050--
RE: Proxying the protocol...
am 13.05.2003 07:05:09 von Kwindla Hultman Kramer
Matt Gregory writes:
> Because I don't know how. I haven't found a way to add custom header
> variables via mod_rewrite or mod_proxy. Is there another apache module
> that will do this?
>
I maintain a set of patches for 1.3.2x mod_proxy that provide header
setting directives. They're mostly used in a reverse proxy context: so
ProxyRequestHeader sets headers in the request going to the backend
server(s), and ProxyResponseHeader sets headers in documents served to
clients.
Many sites have been using these patched mod_proxies in production
for two years or so (since 1.3.19).